
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type LangTypeRequest struct {

	LanguageName string `json:"language_name" form:"language_name"`

	FileName string `json:"file_name" form:"file_name"`

	Status string `json:"status" form:"status"`

	IsDefault string `json:"is_default" form:"is_default"`

	IsDel string `json:"is_del" form:"is_del"`

}

func (r *LangTypeRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *LangTypeRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"language_name": "required",

		"file_name": "required",

		"status": "required",

		"is_default": "required",

		"is_del": "required",

	}
}

func (r *LangTypeRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LangTypeRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LangTypeRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
